//
//  SL_CEOVisitor.swift
//  ArchitectGenerics
//
//  Created by 姚胜龙 on 2017/6/26.
//  Copyright © 2017年 姚胜龙. All rights reserved.
//

import UIKit

class SL_CEOVisitor: SLVisitorProtocol {

    private var name:String

    init(name:String) {
        self.name = name
        print("CEO-\(self.name)")
    }

    func visite(engineer: SLEngineer) {
        print("工程师名称：\(engineer.name)  代码行数：\(engineer.codeLines) KPI：\(engineer.kpi)")
    }

    func visite(manager: SLProgremManager) {
        print("项目经理名称：\(manager.name)  完成项目个数：\(manager.productCount)   KPI：\(manager.kpi)")
    }
}
